#!/user/bin/env node

const fs = require('fs'),
      log = console.log,
      exit = process.exit,
      file = process.argv[2] || __dirname;

if(!fs.existsSync(file)){
  console.error(`${file} not exist!`);
  exit(1);
}
try{
  log(fs.statSync(file));
}catch(e){
  console.error(e.message);
  exit(2);
}
